package com.zikao.question.service.impl;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zikao.common.utils.PageUtils;
import com.zikao.common.utils.Query;

import com.zikao.question.dao.Text2Dao;
import com.zikao.question.entity.Text2Entity;
import com.zikao.question.service.Text2Service;


@Service("text2Service")
public class Text2ServiceImpl extends ServiceImpl<Text2Dao, Text2Entity> implements Text2Service {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<Text2Entity> page = this.page(
                new Query<Text2Entity>().getPage(params),
                new QueryWrapper<Text2Entity>()
        );
        return new PageUtils(page);
    }

    @Override
    public List<Text2Entity> selectBatchIds(List<Long> textIds) {
        return baseMapper.selectBatchIds(textIds);
    }

}